import Vue from 'vue'
import App from './App'
import store from './store'
import cuCustom from './components/cu-custom.vue'
import wxAuthAvatar from './components/authAvatar.vue'
import wxAuthPhone from './components/authPhone.vue'
import req from './common/requrest.js'
import api from './api/index.js'
Vue.config.productionTip = false
Vue.prototype.$store = store
Vue.prototype.$request = req
Vue.prototype.$api = api
Vue.component('cu-custom',cuCustom)
Vue.component('wxAuthAvatar',wxAuthAvatar)
Vue.component('wxAuthPhone',wxAuthPhone)


// 增加全局拦截
Vue.prototype.$onLaunched = new Promise(resolve => {
    Vue.prototype.$isResolve = resolve
})

App.mpType = 'app'

const app = new Vue({
    ...App,
	store
})
app.$mount()
